package com.queue;

import java.util.concurrent.ArrayBlockingQueue;

/**
 * @author: sun.hongliang
 * @create: 2019/12/06 18:21
 */
public class ArrayBlockingQueueTest {
    public static void main(String[] args) throws InterruptedException {
        ArrayBlockingQueue<String> blockingQueue = new ArrayBlockingQueue<>(5);
        blockingQueue.offer("a");
        blockingQueue.take();
    }
}
